import { createApp } from 'vue'
import { createPinia } from 'pinia'
import Antd from 'ant-design-vue'
import App from './App.vue'
import router from './router'
import i18n from './i18n'
import './router/permission'

import 'ant-design-vue/dist/antd.less'
import './styles/index.less'

const app = createApp(App)

// 注意：i18n 必须在 mount 之前安装
app.use(i18n)
app.use(createPinia())
app.use(router)
app.use(Antd)

app.mount('#app')
